import request from '@/utils/request'
//试题管理接口
export function testSubjectsQuery(data) {
	//分页列表
	return request({
		method: 'get',
		url: '/testSubjects/query',
		params: data,
	})
}

export function testSubjectsQueryById(id) {
	//查询
	return request({
		method: 'get',
		url: '/testSubjects/query/' + id,
	})
}

export function testSubjectsAdd(data) {
	//添加
	return request({
		method: 'post',
		url: '/testSubjects/add',
		data,
	})
}

export function testSubjectsDelete(id) {
	//删除
	return request({
		method: 'get',
		url: '/testSubjects/delete/' + id,
	})
}

export function testSubjectsBatchDelete(data) {
	//删除
	return request({
		method: 'post',
		url: '/testSubjects/openApi/batchDelete',
		data
	})
}

export function testSubjectsUpdate(data) {
	//修改 
	return request({
		method: 'post',
		url: '/testSubjects/update',
		data,
	})
}

//导入
export function subjectsImportData(data) {
	return request({
		url: "/testSubjects/import",
		method: "post",
		data: data,
	});
}